#!/bin/sh /etc/rc.common

START=99
USE_PROCD=1

get_config() {
	config_get_bool enabled $1 enabled 1
}

start_service() {
	config_load lcdsimple
	config_foreach get_config main
	[ $enabled != 1 ] && return 1

	procd_open_instance
	procd_set_param command /usr/sbin/lcdsimple
	procd_set_param respawn
	procd_close_instance
}

service_triggers() {
	procd_add_reload_trigger "lcdsimple"
}
